package br.senac.arqpad.pizzaria.dao.factory;

import br.senac.arqpad.pizzaria.dao.DAOMemoria;
import br.senac.arqpad.pizzaria.model.Ingrediente;
import br.senac.arqpad.pizzaria.model.Repository;

public class DAOMemoriaFactory implements RepositoryFactory {
	
	public DAOMemoriaFactory() {};
	
	@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public <T> Repository<T> obterRepositorio(Class classeDoRepositorio) {
		return (Repository<T>) new DAOMemoria<Ingrediente>(classeDoRepositorio);
	}

}
